package cn.bdqn.t354.config;

import cn.bdqn.t354.entity.User;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class SpringConfig {//<beans>

    @Bean
    public User user(){//<bean>
        User user=new User();
        user.setAge(18);
        user.setName("张三");
        return user;
    }
}
